ISP information
----------------
*** IMPORTANT - PLEASE READ THIS SECTION ON RESET DELAY ****************************************************************

Reset Delay is set in PROGRAMMER-OPTIONS. It is set in microseconds and the default value is 28 microseconds.  
This is close to the correct delay for an external RC circuit on the reset pin with a 100nF capacitor and a 4k7 resistor.
These are the values on the Kanda evaluation boards and recommended in the device data sheets.  
If your reset circuitry is different or your capacitor tolerence is high, you will need to alter the reset delay time 
until the ISP communicates reliably - SEE SECTION 6.  

ADJUST RESET DELAY FROM PROGRAMMER-OPTIONS MENU UNTIL THE ISP RUNS RELIABLY. 
AUTO SET BUTTON WILL FIND CORRECT DELAY FOR TARGET BOARD.

The message "Target device not found or target board not powered or incorrect reset delay" occurs if the board
is not powered, no device is inserted (or the device is the wrong way round), the clock options programmed are
not supported by the target circuit (see section 9) or the reset delay is wrong (See section 6 for more details).

SETUP PROCEDURE

a. Connect the hardware. Plug the ISP into the port you want to use, Serial or parallel and insert ribbon cable in target.
b. Insert device in socket and check device orientation
c. Apply power to the board (9-15VDC) 
d. Choose correct port type (serial or parallel) in drop-down box at the top right of the screen.
e. If the programmer is not detected, check Programmer-Options menu for correct port (LPT1 etc)
f. Check correct device is selected in drop-down box at the top left of the screen
g. Go to Programmer_options menu and select reset delay tab. Click on Auto Set button and ISP should find device

*************************************************************************************************

1. The ISP will only work properly if it is plugged into a target board and the target board is powered. 
   The PC can not supply enough power for the ISP or the target. Minimum target clock speed is 1 MHz.

2. If the ISP does not connect, a red light will appear at the bottom of the screen. Make sure the connections are correct, 
   the ISP is connected to a target board, the target device is powered, the right port is selected in Programmer-Options
   and Reset delay is correct (Section 6). 
   Re-select the hardware (in the drop down box on the top right of the screen) and the ISP will attempt to re-connect. 

   If connection problems persist or the ISP constantly reports "reset delay incorrect", disconnect the ISP from the PC,
   remove power from the target and close and re-open the program. On parallel port, plug the ISP directly into the PC
   rather than using an extension cable.


   On slower PCs, the timeout delay may need to be increased in PROGRAMMER-OPTIONS menu to prevent time-out 
   problems. Select PROGRAMMER-OPTIONS then select Advanced Options tab. Values are given for read and 
   write time-out, and the default value is 180,000. Increase this value until you no longer get time-out 
   errors.
   Note : These values are just arbitary values and do not respresent any time period or units.
   

3. The connections on the ISP are :

                      key way 

        ISPDAT  ISPCLK  RESET   NC   ISPSEL 
        
         GND     GND     GND   GND    VDD   


4. Standard ST connection is shown below - an adapter is included to convert to this format :

                      key way 
       
          NC     VDD     GND    GND    GND   
        
          NC    ISPSEL  RESET  ISPCLK  ISPDAT

   NOTE : The adapter is plugged into the target board and the ISP lead is plugged into it.
   It is NOT plugged directly into the ISP dongle.       

   If you keep getting communication errors, especially on the serial port, then disconnect 
   the ISP from the PC and from the target board to completely reset it.

5. If Read-out Protection is set, then reading the device will show 00 in every location. The EEPROM 
   data memory (if available) and Option bytes can still be read.
   If Read-out Protection is cleared, then reading the device will show all locations contain FF 
   except the first two columns which show Option values.

6. If the message "Device not found, target not powered or reset delay incorrect" keeps appearing 
   then :

a. Check 10-cable is connected properly
b. Check target board is powered
c. Check correct device is in socket, and it is the right way round
d. Alter the reset delay. 
   To alter the reset delay choose PROGRAMMER-OPTIONS from the main menu.
   Click on the RESET DELAY tab
   Click on Auto Set Button. The ISP will try and put the device into ISP mode.  If it fails,
   check connections, Port settings, power to the target and device orientation and setting.

   Default delay is set for a 100nF capacitor and a 4K7 resistor on reset. 
   This is 28 microseconds, but values for a 100nF capacitor can vary between 19 to 33 uS, depending 
   on actual capacitor value and temperature.  

  The ISP initialisation pulses must occur after the reset has risen but within a short period of 
  reset being detected, approx 4 microsecond with a 16 MHz clock, 16 microseconds with a 4 MHz 
  clock. Therefor, too long or too short a value will fail.  The reset pin on the ST7 is driven at
  20mA by the ISP hardware and the reset threshold max. value is 0.7*Vdd.
  
  Typical reset delay times
  -------------------------
  Cap value     time
  ---------     ---- 
  0 - 99pF      1-6 uS  
  100pF-1nF     2-8 uS
  10nF          3-10 uS
  22nF          7-11 uS
  47nF          12-18 uS
  100nF         20-30 uS    * Default ISP setting 28uS 

  NOTES :
         a. The reset delay may need to be reduced once the board has warmed up as the reset threshold of the ST7
            decreases.
         b. If the reset delay is almost correct, the ISP will read but may fail on operations on the Option bytes. 
            If this happens, then alter the reset delay by 1 or 2 uS.  
         c. A reset delay that is correct with internal clock set in the option bytes may be too long if the option bytes 
            are re-programmed to high speed resonator or external clock at 16 MHz.  This happens because the ISP pulses 
            must occur within 256 clock cycles after reset.  Reduce the reset delay until the ISP communicates reliably 
            at the new clock speed.

  These are values with a 4k7 resistor and 16 MHz clock. These values will vary with capacitor tolerence, usually 10%.
  With a slower clock, the maximum delay time can be greater than shown.
  Note : Reset delay will be saved when the program is terminated, but reset delay on serial and parallel port are 
  stored separately.

7. BIOS settings for ports.
   
   -------------------------------------------- 
   PC Bios settings for Parallel and Serial ports 
   Parallel port 1 address (LPT1) must be set to 378h
   Parallel port 2 address (LPT2) must be set to 278h
   Parallel port 3 address (LPT3) must be set to 3BCh 

   If you have problems with Parallel port connections, then try changing the port mode to EPP 
   preferably v1.9 in the BIOS. If this is not available then ECP or Bi-directional may work 
   (it depends on the PC manufacturer)

   On some laptops or IBM PCs these BIOS settings are not available.  In these cases, choose AT-Style if available. This may 
   work but PS2-Style almost certainly won't work 

   If you have problems with timeout on the serial port, try disabling the FIFO buffer in :
       Control Panel, System, Device Manager,ports, port settings, advanced.
   A full description is available on www.st7-forum.com

   Any changes to the port settings in the bios should be detected automatically by Windows 
   when the PC restarts. 


8. If you keep getting communication errors, or the ISP "hangs", then disconnect 
   the ISP from the PC and from the target board to completely reset it. 

9. Clock Options.

   The internal clock circuitry of the ST7 can be set to a number of different target clock types or to Internal Clock
   on the Options page. The default factory value is Internal Clock. Be careful to only program the clock type to a type
   supported by your target circuit or it MAY BECOME IMPOSSIBLE TO COMMUNICATE WITH THE DEVICE.  Kanda 
   evaluation boards are designed to support all clock options.

10. Run Mode is to allow the target ST7 device to run with the ISP still connected.  If the code in the ST7 devices fails to 
    run immediately, press the reset button on the target board.

11. ISP lines.
    
    The three main ines used for programming are ISPSEL, ISPCLK and ISPDAT. ISPSEL is a dedicated pin on the ST7 
    device but ISPCLK and ISPDAT are also normal I/O pins. User circuits should isolate these lines with jumpers 
    or resistors if they are used as normal I/O.

12. www.st7-forum.com is an engineering site with support for this product.  As well as FAQ (Frequently Asked Questions), a 
    discussion forum is available where you can post your particular question.  Program updates are also available on this
    site.  

    If you can not find what you are looking for, technical support is available from Kanda on st7Support@kanda.com. Choose 
    Help or press F1 to launch help file, go to technical support and click on technical support hyperlink to send an email.